package cn.lingyangwl.agile.gateway.service;

import cn.lingyangwl.agile.gateway.model.ram.*;
import cn.lingyangwl.agile.model.module.auth.*;
import org.springframework.web.server.ServerWebExchange;

import java.util.List;

/**
 * @author shenguangyang
 */
public interface AuthService {
    void hasPermission(ServerWebExchange exchange, LoginUser loginUser, String uri);

    void updateResourceModule(List<RamModule> resourceModule);

    /**
     * 删除本地客户端缓存
     * @param clientId 客户端id
     */
    void deleteClientAuthority(String clientId);
}
